package com.thinkgem.javamg.modules.busi.dto;

import com.thinkgem.javamg.common.utils.StringUtils;

/**
 * 头条数据DTO
 */
public class ToutiaoDataDTO {
    private String image_url;//列表图片
    private String title;//标题
    private String source;//来源
    private String item_id;
    private long publish_time;//发布时间
    private String content;//内容
    private boolean has_video;//是否有是视频

    public String getImage_url() {
        if (StringUtils.isNotEmpty(image_url) && !image_url.contains("http:")) {
            return "http:" + image_url;
        }
        return image_url;
    }

    public void setImage_url(String image_url) {
        this.image_url = image_url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getItem_id() {
        return item_id;
    }

    public void setItem_id(String item_id) {
        this.item_id = item_id;
    }

    public long getPublish_time() {
        return publish_time;
    }

    public void setPublish_time(long publish_time) {
        this.publish_time = publish_time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isHas_video() {
        return has_video;
    }

    public void setHas_video(boolean has_video) {
        this.has_video = has_video;
    }
}
